package com.me.myFramework.myJedis;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * 山寨的 Redis 服务，用来抓 Jedis客户端的数据：协议、格式等等
 *
 * @author ME
 * @date   2019/3/5 15:22
 */
public class CopyRedisServer {

    public static void main(String[] args) {
        try {
            ServerSocket serverSocket = new ServerSocket(6380);
            Socket socket = serverSocket.accept();
            byte[] buffer = new byte[1024];
            socket.getInputStream().read(buffer);
            System.out.println();

        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
